package cn.kattomy.shop.category.vo;

import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.Set;

import cn.kattomy.shop.categorysecond.vo.CategorySecond;
import cn.kattomy.shop.prevcategory.vo.PrevCategory;

/**
 * `cid` int(11) NOT NULL AUTO_INCREMENT,
 * `cname` varchar(255) DEFAULT NULL,
 * `pcid` int(11) DEFAULT NULL,
 * @author kattomy
 *
 */
public class Category {

	private Integer cid;
	private String cname;
	private PrevCategory prevcategory;
	public PrevCategory getPrevcategory() {
		return prevcategory;
	}
	public void setPrevcategory(PrevCategory prevcategory) {
		this.prevcategory = prevcategory;
	}
	/**
	 * 一级分类对应的二级分类集合
	 */
	private Set<CategorySecond> categorySeconds = new LinkedHashSet<CategorySecond>();
	
	public Integer getCid() {
		return cid;
	}
	public void setCid(Integer cid) {
		this.cid = cid;
	}
	public String getCname() {
		return cname;
	}
	public void setCname(String cname) {
		this.cname = cname;
	}
	public Set<CategorySecond> getCategorySeconds() {
		return categorySeconds;
	}
	public void setCategorySeconds(Set<CategorySecond> categorySeconds) {
		this.categorySeconds = categorySeconds;
	}
	
}
